package com.yl.pattern.creatormodel.factory.simple_factory;

import com.yl.pattern.creatormodel.factory.before.Coffee;
import com.yl.pattern.creatormodel.factory.before.CoffeeStore;

/**
 * @Author 小羊
 * @Date 29/10/2024下午 8:31
 * @ClassName Client
 * @Description Client
 */
public class Client {
    public static void main(String[] args) {
        //创建咖啡店类对象
        CoffeeStore coffeeStore = new CoffeeStore();
        Coffee coffee = coffeeStore.orderCoffee("american");
        System.out.println(coffee.getName());
    }
}
